<div class="form-area" id="training-form">
    <form action="/resume/training/<#if (training.id)??>${training.id}/</#if>${behaviour}" method="post" id="form-training">
        <input type="hidden" name="method" value="do"/>
        <input type="hidden" name="CSRFToken" value="${CSRFToken!""}"/>
        <table width="100%" class="dj-form-base">
            <colgroup>
                <col width="120">
                <col width="*">
            </colgroup>
            <tbody>
            <tr>
                <th><em>*</em>培训名称:</th>
                <td class="input">
                    <input type="text" maxlength="40" reg="^.{2,40}$" value="${(training.name)!}" name="name" class="text J_checkInput" id="trainingname-input">
                    <div style="display:none;" class="error">请填写培训名称</div>
                </td>
            </tr>
            <tr>
                <th>培训机构:</th>
                <td class="input">
                    <input type="text" value="${(training.institution)!}" maxlength="80" name="institution" class="text" id="institution-input">
                    <div style="display:none;" class="error">请填写机构名称</div>
                </td>
            </tr>
            <tr>
                <th><em>*</em>培训时间:</th>
                <#if (training.endDate)?? && training.endDate?string('yyyy-MM-dd') = '2030-01-01'>
                    <#assign endYear = ''/>
                    <#assign endMonth = ''/>
                    <#assign checked= "checked"/>
                <#else>
                    <#assign endYear = (training.endDate?string('yyyy'))!""/>
                    <#assign endMonth = (training.endDate?string('MM'))!""/>
                </#if>
                <td class="input">
                    <input type="text" reg="fun:$.formValidateFn.time,work,td" class="text year J_checkInput"
                           id="startdate-year" name="start" maxlength="4" value="${(training.startDate?string('yyyy'))!}">

                    <span class="input">年</span>
                    <input type="text" class="text month" id="startdate-month" name="start" maxlength="2" value="${(training.startDate?string('MM'))!}">
                    <span class="input">月&nbsp;至</span>
                    <input type="text" class="text year" id="enddate-year" name="end" maxlength="4" value="${(endYear)!""}" <#if checked??>disabled </#if>>
                    <span class="input">年</span>
                    <input type="text" class="text month" id="enddate-month" name="end" maxlength="2" value="${(endMonth)!""}" <#if checked??>disabled </#if>>
                    <span class="input">月</span>
                    <input type="checkbox" class="checkbox radio" name="withoutEnd" value="present"
                           id="enddate-present-checkbox" <#if checked??>checked </#if>>
                    <span class="checkbox f12" for="enddate-present-checkbox">至今</span>
                    <div style="display: none; " class="error">请填写正确的时间</div>
                </td>
            </tr>
            <tr>
                <th>培训内容:</th>
                <td class="input textarea-box">
                    <textarea name="descr" class="textarea-con edit-textarea J_checkInput" blankvalue="限400字" blanksubmit="true" blankclass="g9" reg="^.{0,400}$" id="resume-training-desc-textarea" maxnum="400"><#if training.descr??>${training.descr}</#if></textarea>
                    <p class="textarea-check-tip"><span class="J_lastNum g9"><span>0</span>/400</span></p>
                </td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <td class="input button">
                    <a href="javascript:void(0);"class="fresh formValidateSubmit margin" id="J_formSubmit" itemtype="training"><span>保存</span></a><a href="javascript:void(0);" class="normal J_cancel" itemtype="training"><span>取消</span></a>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>